﻿/**************************************************************
*作者：Leon
*创建时间：2022/4/5 19:40:45
**************************************************************/
using System.Windows.Data;
using System.Windows.Media;

namespace Lad.DrawProject.Controls.Converters;

public class StringPathConverter : IValueConverter
{
    public object? Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        if (value is string)
        {
            return Geometry.Parse(value as string);
        }
        return null;
    }

    public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}
